package net.wanho.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.wanho.po.Role;
import net.wanho.po.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.wanho.vo.UserInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 王洋
* @description 针对表【user_info(用户表)】的数据库操作Mapper
* @createDate 2024-09-03 17:43:36
* @Entity net.wanho.po.UserInfo
*/
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    void addUser(UserInfoVo userInfoVo);

    void updatePwd(@Param("id") Integer id,@Param("newPwd") String newPwd);

    List<Role> selectUserRoleList(Integer id);

    Page<UserInfo> selectByPage(Page<UserInfo> page, @Param("ew") Wrapper<UserInfo> wrapper);

    List<Integer> getUserAuthIdList(Integer userId);
}




